package week04.homework01MazeGame.model.spell;

/**
 * @author li
 */
public abstract class BaseSpell implements Spell {

    private final int manaCost;

    private final String spellName;

    protected BaseSpell(int manaCost, String spellName) {
        this.manaCost = manaCost;
        this.spellName = spellName;
    }

    @Override
    public int getManaCost() {
        return manaCost;
    }

    @Override
    public String getSpellName() {
        return spellName;
    }

    @Override
    public String getDescription() {
        return "需要 " + manaCost + " 点魔法值";
    }
}
